<?php


namespace app\common\model;


use app\common\traites\TraitModel;
use think\Model;

class GameType extends Model
{
    use TraitModel;
    public $name = 'dianji_game_type';

    //游戏名称

    public static function one($id=0){
        if ($id || $id<=0){
            return self::select();
        }

       return self::where('id',$id)->value('type_name');
    }
}